//package cn.sharesdk.demo.platform.telegram;
//
//
//import com.mob.MobSDK;
//
//import cn.sharesdk.demo.entity.ResourcesManager;
//import cn.sharesdk.framework.Platform;
//import cn.sharesdk.framework.PlatformActionListener;
//import cn.sharesdk.framework.ShareSDK;
////import cn.sharesdk.telegram.Telegram;
//
//
//public class TelegramShare {
//	private PlatformActionListener platformActionListener;
//
//	public TelegramShare(PlatformActionListener mListener){
//		this.platformActionListener = mListener;
//	}
//
//	public void shareText(){
////		Platform platform = ShareSDK.getPlatform(Telegram.NAME);
//		Platform.ShareParams shareParams = new  Platform.ShareParams();
//		shareParams.setText(ResourcesManager.getInstace(MobSDK.getContext()).getText());
//		shareParams.setTitle(ResourcesManager.getInstace(MobSDK.getContext()).getTitle());
//		shareParams.setUrl(ResourcesManager.getInstace(MobSDK.getContext()).getUrl());
//		platform.setPlatformActionListener(platformActionListener);
//		platform.share(shareParams);
//	}
//	public void shareImage(){
//		Platform platform = ShareSDK.getPlatform(Telegram.NAME);
//		Platform.ShareParams shareParams = new  Platform.ShareParams();
//		shareParams.setText(ResourcesManager.getInstace(MobSDK.getContext()).getText());
//		shareParams.setTitle(ResourcesManager.getInstace(MobSDK.getContext()).getTitle());
//		shareParams.setImageUrl(ResourcesManager.getInstace(MobSDK.getContext()).getImageUrl());
//		shareParams.setImagePath(ResourcesManager.getInstace(MobSDK.getContext()).getImagePath());
//		shareParams.setImageArray(ResourcesManager.getInstace(MobSDK.getContext()).randomPic());
//		shareParams.setUrl(ResourcesManager.getInstace(MobSDK.getContext()).getUrl());
//		platform.setPlatformActionListener(platformActionListener);
//		platform.share(shareParams);
//	}
//}
